<?php
namespace catchAdmin\customs\model\search;

trait AccountSearch
{
    /*
     *  账册备案料号
    */
    public function searchrecordMaterialNoAttr($query, $value, $data)
    {
        return $query->where('record_material_no', $value);
    }
    
    /*
     *  条形码
    */
    public function searchbarcodeAttr($query, $value, $data)
    {
        return $query->where('barcode', $value);
    }
    /*
     *  海关编码
    */
    public function searchgCodeAttr($query, $value, $data)
    {
        return $query->where('g_code', $value);
    }
    /*
     *  海关备案商品名称
    */
    public function searchgNameAttr($query, $value, $data)
    {
        return $query->whereLike('g_name', $value);
    }
}